<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<c:set value="${pageContext.request.contextPath}" var="path" scope="page"/>
<!DOCTYPE html>
<html lang="en">
<head>
	<!--
		Charisma v1.0.0

		Copyright 2012 Muhammad Usman
		Licensed under the Apache License v2.0
		http://www.apache.org/licenses/LICENSE-2.0

		http://usman.it
		http://twitter.com/halalit_usman
	-->
	<meta charset="utf-8">
	<title>编辑心灵鸡汤界面</title>
	<meta name="viewport" content="width=device-width, initial-scale=1.0">
	<meta name="description" content="Charisma, a fully featured, responsive, HTML5, Bootstrap admin template.">
	<meta name="author" content="Muhammad Usman">

	<!-- The styles -->
	<link id="bs-css" href="${path}/css/bootstrap-cerulean.css" rel="stylesheet">
	<style type="text/css">
	  body {
		padding-bottom: 40px;
	  }
	  .sidebar-nav {
		padding: 9px 0;
	  }
	</style>
	<link href="${path}/css/bootstrap-responsive.css" rel="stylesheet">
	<link href="${path}/css/charisma-app.css" rel="stylesheet">
	<link href="${path}/css/jquery-ui-1.8.21.custom.css" rel="stylesheet">
	<link href='${path}/css/fullcalendar.css' rel='stylesheet'>
	<link href='${path}/css/fullcalendar.print.css' rel='stylesheet'  media='print'>
	<link href='${path}/css/chosen.css' rel='stylesheet'>
	<link href='${path}/css/uniform.default.css' rel='stylesheet'>
	<link href='${path}/css/colorbox.css' rel='stylesheet'>
	<link href='${path}/css/jquery.cleditor.css' rel='stylesheet'>
	<link href='${path}/css/jquery.noty.css' rel='stylesheet'>
	<link href='${path}/css/noty_theme_default.css' rel='stylesheet'>
	<link href='${path}/css/elfinder.min.css' rel='stylesheet'>
	<link href='${path}/css/elfinder.theme.css' rel='stylesheet'>
	<link href='${path}/css/jquery.iphone.toggle.css' rel='stylesheet'>
	<link href='${path}/css/opa-icons.css' rel='stylesheet'>
	<link href='${path}/css/uploadify.css' rel='stylesheet'>

	<!-- The HTML5 shim, for IE6-8 support of HTML5 elements -->
	<!--[if lt IE 9]>
	  <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
	<![endif]-->

	<!-- The fav icon -->
	<link rel="shortcut icon" href="${path}/img/favicon.ico">
</head>

<body>

		<div class="navbar">
		<div class="navbar-inner">
			<div class="container-fluid">
				<a class="btn btn-navbar" data-toggle="collapse" data-target=".top-nav.nav-collapse,.sidebar-nav.nav-collapse">
					<span class="icon-bar"></span>
					<span class="icon-bar"></span>
					<span class="icon-bar"></span>
				</a>
				<a class="brand" href="${path}/userManager">  <span>后台管理系统</span></a>
				
				
			</div>
		</div>
	</div>
	<!-- topbar ends -->
		<div class="container-fluid">
		<div class="row-fluid" >
				
			<!-- left menu starts -->
			<div class="span2 main-menu-span">
				<div class="well nav-collapse sidebar-nav">

					<ul class="nav nav-tabs nav-stacked main-menu">
						<li>
							<a class="ajax-link" href="/longai/event/eventManager">
								<i class="icon-home"></i>
								<span class="hidden-tablet">活动管理</span>
							</a>
						</li>				
                    </ul>
                    <ul class="nav nav-tabs nav-stacked main-menu">
						<li>
							<a class="ajax-link" href="/longai/new/newManager">
								<i class="icon-home"></i>
								<span class="hidden-tablet">心灵鸡汤管理</span>
							</a>
						</li>				
                    </ul>
                    
					
				</div><!--/.well -->
			</div><!--/span-->
			<!-- left menu ends -->
			<div id="content" class="span10">
			<!-- content starts -->
			

			<div>
				<ul class="breadcrumb">
					<li>
						<a href="/longai/event/eventManager">首页</a> <span class="divider">/</span>
					</li>
					<li>
						<a href="/longai/new/newManager">心灵鸡汤管理</a> <span class="divider">/</span>
					</li>
					<li>
						<a href="#">修改心灵鸡汤</a>
					</li>
				</ul>
			</div>
			
			<div class="row-fluid sortable">
				<div class="box span12">
					<div class="box-header well" data-original-title>
						<h2><i class="icon-edit"></i> 心灵鸡汤信息</h2>
						<div class="box-icon">
							<a href="#" class="btn btn-setting btn-round"><i class="icon-cog"></i></a>
							<a href="#" class="btn btn-minimize btn-round"><i class="icon-chevron-up"></i></a>
							<a href="#" class="btn btn-close btn-round"><i class="icon-remove"></i></a>
						</div>
					</div>
					<div class="box-content">
						<form id='info' class="form-horizontal" action="/longai/new/addNewEdit" method="POST" name="news" enctype="multipart/form-data" >
						  <fieldset>
						  
							<div class="control-group">
							  <label class="control-label" for="party">心灵鸡汤标题： </label>
							  <div class="controls">
								<input type="text" class="span3" id="party" value="${newss.title}" name="title">
							  </div>
							</div>
							<div class="control-group">
							  <label class="control-label" for="party">心灵鸡汤内容： </label>
							  <div class="controls">
								<input type="text" type="text" class="span3" id="party" value="${newss.content}" name="content">
								
							  </div>
							</div>
							<div class="control-group">
							  <label class="control-label" for="party">心灵鸡汤作者： </label>
							  <div class="controls">
								<input  class="span3" id="party" value="${newss.author}" name="author">
							  </div>
							  <input type="hidden"  value="${newss.newsId}" name="newsId">
							</div>
								<input type="file" name="image" value="">
						  </fieldset>
						</form>   

					</div>
				</div><!--/span-->
							<div id="anniu" class="form-actions" onclick=submit()>
							  <span id="submit" class="btn btn-primary">确定</span>
							  <a class="btn" href="/longai/new/newManager">取消</a>
							</div>
			</div><!--/row-->
		
	</div><!--/.fluid-container-->

	<!-- external javascript
	================================================== -->
	<!-- Placed at the end of the document so the pages load faster -->

	<!-- jQuery -->
	<script src="${path }/js/jquery-1.7.2.min.js"></script>
	<!-- jQuery UI -->
	<script src="${path }/js/jquery-ui-1.8.21.custom.min.js"></script>
	<!-- transition / effect library -->
	<script src="${path }/js/bootstrap.js"></script>

	<!-- library for cookie management -->
	<script src="${path }/js/jquery.cookie.js"></script>
	<!-- calander plugin -->
	<script src='${path }/js/fullcalendar.min.js'></script>
	<!-- data table plugin -->
	<script src='${path }/js/jquery.dataTables.min.js'></script>

	<!-- chart libraries start -->
	<script src="${path }/js/excanvas.js"></script>
	<script src="${path }/js/jquery.flot.min.js"></script>
	<script src="${path }/js/jquery.flot.pie.min.js"></script>
	<script src="${path }/js/jquery.flot.stack.js"></script>
	<script src="${path }/js/jquery.flot.resize.min.js"></script>
	<!-- chart libraries end -->

	<!-- select or dropdown enhancer -->
	<script src="${path }/js/jquery.chosen.min.js"></script>
	<!-- checkbox, radio, and file input styler -->
	<script src="${path }/js/jquery.uniform.min.js"></script>
	<!-- plugin for gallery image view -->
	<script src="${path }/js/jquery.colorbox.min.js"></script>
	<!-- rich text editor library -->
	<script src="${path }/js/jquery.cleditor.min.js"></script>
	<!-- notification plugin -->
	<script src="${path }/js/jquery.noty.js"></script>
	<!-- file manager library -->
	<script src="${path }/js/jquery.elfinder.min.js"></script>
	<!-- star rating plugin -->
	<script src="${path }/js/jquery.raty.min.js"></script>
	<!-- for iOS style toggle switch -->
	<script src="${path }/js/jquery.iphone.toggle.js"></script>
	<!-- autogrowing textarea plugin -->
	<script src="${path }/js/jquery.autogrow-textarea.js"></script>
	<!-- multiple file upload plugin -->
	<script src="${path }/js/jquery.uploadify-3.1.min.js"></script>
	<!-- history.js for cross-browser state change on ajax -->
	<script src="${path }/js/jquery.history.js"></script>
	<!-- application script for Charisma demo -->
	<script src="${path }/js/charisma.js"></script>	
	<script src="${path }/js/index.js"></script>
	<script>
	$(document).ready($('#submit').click(function(){
		$('#info').submit();
	}));
	</script>
</body>
</html>
